Transaction State Transition
Voided Send this event to a Recorded tax transaction record to mark it as voided. Recorded -> Voided
UnVoided Send this event to a Voided tax transaction record to mark it as recorded. Voided -> Recorded
Reconciled Send this event to a Recorded tax transaction record to indicate that it has been reconciled with client systems and to prevent it from being edited prior to filing. This is useful when a transaction will be filed and you do not want it to change again to facilitate auditing and reconciliation. Recorded -> Reconciled
UnReconciled Send this event to a Reconciled tax transaction record to indicate that it has not been reconciled and may need to be edited. This is useful when a Tax transaction was erroniously put into the reconciled state. Reconciled -> Recorded
Filed Send this event to a Reconciled transaction to indicate that it has been part of a tax filing by the client system. Reconciled -> Filed
UnFiled Send this event to a Filed transaction to indicate that it has NOT been part of a tax filing by the client system. Filed -> Reconciled
FiledByAvalara This event can only be sent by Avalara Systems. Reconciled -> FiledByAvalara
curl -X post "https://br16-dev-app03.br.avalara.com/v2/transactions/account/{accountId}/company/{companyCode}/{transactionType}/{documentCode}/stateTransitions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceTransactionsApi;
import java.io.File;
import java.util.*;
public class ServiceTransactionsApiExample {
public static void main(String[] args) {
ServiceTransactionsApi apiInstance = new ServiceTransactionsApi();
String authorization = authorization_example; // String | Bearer {auth}
UUID accountId = accountId_example; // UUID | Account ID
String companyCode = companyCode_example; // String | Company Code
String transactionType = transactionType_example; // String | Transaction Type (sale, purchase, receipts or payment)
String documentCode = documentCode_example; // String | Document Code
StateTransition body = ; // StateTransition | Transaction Message
try {
apiInstance.transactionsAccountAccountIdCompanyCompanyCodeTransactionTypeDocumentCodeStateTransitionsPost(authorization, accountId, companyCode, transactionType, documentCode, body);
} catch (ApiException e) {
System.err.println("Exception when calling ServiceTransactionsApi#transactionsAccountAccountIdCompanyCompanyCodeTransactionTypeDocumentCodeStateTransitionsPost");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ServiceTransactionsApi;
public class ServiceTransactionsApiExample {
public static void main(String[] args) {
ServiceTransactionsApi apiInstance = new ServiceTransactionsApi();
String authorization = authorization_example; // String | Bearer {auth}
UUID accountId = accountId_example; // UUID | Account ID
String companyCode = companyCode_example; // String | Company Code
String transactionType = transactionType_example; // String | Transaction Type (sale, purchase, receipts or payment)
String documentCode = documentCode_example; // String | Document Code
StateTransition body = ; // StateTransition | Transaction Message
try {
apiInstance.transactionsAccountAccountIdCompanyCompanyCodeTransactionTypeDocumentCodeStateTransitionsPost(authorization, accountId, companyCode, transactionType, documentCode, body);
} catch (ApiException e) {
System.err.println("Exception when calling ServiceTransactionsApi#transactionsAccountAccountIdCompanyCompanyCodeTransactionTypeDocumentCodeStateTransitionsPost");
e.printStackTrace();
}
}
}
String *authorization = authorization_example; // Bearer {auth}
UUID *accountId = accountId_example; // Account ID
String *companyCode = companyCode_example; // Company Code
String *transactionType = transactionType_example; // Transaction Type (sale, purchase, receipts or payment)
String *documentCode = documentCode_example; // Document Code
StateTransition *body = ; // Transaction Message
ServiceTransactionsApi *apiInstance = [[ServiceTransactionsApi alloc] init];
// Transaction State Transition
[apiInstance transactionsAccountAccountIdCompanyCompanyCodeTransactionTypeDocumentCodeStateTransitionsPostWith:authorization
accountId:accountId
companyCode:companyCode
transactionType:transactionType
documentCode:documentCode
body:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var Br16Api = require('br16___api');
var api = new Br16Api.ServiceTransactionsApi()
var authorization = authorization_example; // {String} Bearer {auth}
var accountId = accountId_example; // {UUID} Account ID
var companyCode = companyCode_example; // {String} Company Code
var transactionType = transactionType_example; // {String} Transaction Type (sale, purchase, receipts or payment)
var documentCode = documentCode_example; // {String} Document Code
var body = ; // {StateTransition} Transaction Message
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.transactionsAccountAccountIdCompanyCompanyCodeTransactionTypeDocumentCodeStateTransitionsPost(authorization, accountId, companyCode, transactionType, documentCode, body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class transactionsAccountAccountIdCompanyCompanyCodeTransactionTypeDocumentCodeStateTransitionsPostExample
{
public void main()
{
var apiInstance = new ServiceTransactionsApi();
var authorization = authorization_example; // String | Bearer {auth}
var accountId = accountId_example; // UUID | Account ID
var companyCode = companyCode_example; // String | Company Code
var transactionType = transactionType_example; // String | Transaction Type (sale, purchase, receipts or payment)
var documentCode = documentCode_example; // String | Document Code
var body = new StateTransition(); // StateTransition | Transaction Message
try
{
// Transaction State Transition
apiInstance.transactionsAccountAccountIdCompanyCompanyCodeTransactionTypeDocumentCodeStateTransitionsPost(authorization, accountId, companyCode, transactionType, documentCode, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling ServiceTransactionsApi.transactionsAccountAccountIdCompanyCompanyCodeTransactionTypeDocumentCodeStateTransitionsPost: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\ServiceTransactionsApi();
$authorization = authorization_example; // String | Bearer {auth}
$accountId = accountId_example; // UUID | Account ID
$companyCode = companyCode_example; // String | Company Code
$transactionType = transactionType_example; // String | Transaction Type (sale, purchase, receipts or payment)
$documentCode = documentCode_example; // String | Document Code
$body = ; // StateTransition | Transaction Message
try {
$api_instance->transactionsAccountAccountIdCompanyCompanyCodeTransactionTypeDocumentCodeStateTransitionsPost($authorization, $accountId, $companyCode, $transactionType, $documentCode, $body);
} catch (Exception $e) {
echo 'Exception when calling ServiceTransactionsApi->transactionsAccountAccountIdCompanyCompanyCodeTransactionTypeDocumentCodeStateTransitionsPost: ', $e->getMessage(), PHP_EOL;
}
?>